﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace comm.objst
{
    [Serializable]
    public class CreateHero
    {
        private string _userId = null;
        public string UserId
        {
            get
            {
                if (_userId == null)
                {
                    _userId = "";
                }
                return _userId;
            }
            set { _userId = value; }
        }

        private string _starId = null;
        public string StarId
        {
            get
            {
                if (_starId == null)
                {
                    _starId = "";
                }
                return _starId;
            }
            set { _starId = value; }
        }

        private string _factionId = null;
        public string FactionId
        {
            get
            {
                if (_factionId == null)
                {
                    _factionId = "";
                }
                return _factionId;
            }
            set { _factionId = value; }
        }

        private string _heroId = null;
        public string HeroId
        {
            get
            {
                if (_heroId == null)
                {
                    _heroId = "";
                }
                return _heroId;
            }
            set { _heroId = value; }
        }

        private string _nickname = null;
        public string Nickname
        {
            get
            {
                if (_nickname == null)
                {
                    _nickname = "";
                }
                return _nickname;
            }
            set { _nickname = value; }
        }
    }

    [Serializable]
    public class CreateState
    {
        private string _stateId = null;
        public string StateId
        {
            get
            {
                if (_stateId == null)
                {
                    _stateId = "";
                }
                return _stateId;
            }
            set { _stateId = value; }
        }

        public int Dur { get; set; }
    }

    [Serializable]
    public class CreateUnit
    {
        private string _unitId = null;
        public string UnitId
        {
            get
            {
                if (_unitId == null)
                {
                    _unitId = "";
                }
                return _unitId;
            }
            set { _unitId = value; }
        }

        private uint _level = 1;
        public uint Level
        {
            get { return _level; }
            set { _level = value; }
        }

        private uint _count = 1;
        public uint Count
        {
            get { return _count; }
            set { _count = value; }
        }
    }

    [Serializable]
    public class CreateItem
    {
        private string _itemId = null;
        public string ItemId
        {
            get
            {
                if (_itemId == null)
                {
                    _itemId = "";
                }
                return _itemId;
            }
            set { _itemId = value; }
        }

        private uint _count = 1;
        public uint Count
        {
            get { return _count; }
            set { _count = value; }
        }

    }
}
